/*
 * @Author: your name
 * @Date: 2020-03-26 09:41:08
 * @LastEditTime: 2020-03-26 09:41:10
 * @LastEditors: Please set LastEditors
 * @Description: 蓝樱桃
 */

// 登录
export const getLogin = "http://yc.eoqiu.cn/login/Login?returnUrl=/"
// 获取账号
export const getAccountList = "http://yc.eoqiu.cn/ReceiptTask/Index"
// 获取任务
export const getReceiptOrder = "http://yc.eoqiu.cn/ReceiptTask/GetReceiptOrder"
// 接单
export const saveReceiptOrder = "http://yc.eoqiu.cn/ReceiptTask/SaveReceiptOrder"
// 拒接接单
export const onRefuseOrder = "http://yc.eoqiu.cn/ReceiptTask/RefuseOrder"

export function ajaxFun(url, param, fun) {
    window.api.ajax({
        url: url,
        method: param.type,
        headers: {
            'X-Requested-With': 'XMLHttpRequest'
        },
        dataType: param.dataType || 'json',
        returnAll: false,
        async: false,
        data: {
            values: param.data
        }
    }, fun)
}